Cryosphere · Snow / Ice Mapping

NDSI_MOD – Modified Normalized Difference Snow Index

NDSI_MOD is a modified version of the classic snow index, using Green and the longer SWIR band to better separate snow/ice from clouds, bright soil and built-up areas.

1. Scientific Definition

The Modified Normalized Difference Snow Index (NDSI_MOD) enhances snow and ice using visible–SWIR contrast, typically replacing SWIR1 with SWIR2 to reduce confusion with other bright targets.

Formula

NDSI_MOD = (Green − SWIR2) / (Green + SWIR2)

  • Green – visible green reflectance
  • SWIR2 – longer wavelength SWIR band

Interpretation

  • NDSI_MOD > 0.4 – 0.5 → likely snow / ice
  • Values around 0 → soil / bare land / built-up
  • Negative values → water, vegetation, dark surfaces

Applications

  • Snow cover mapping
  • Seasonal cryosphere monitoring
  • Glacier and snowpack studies
  • Hydrological modeling (snowmelt)

2. Required Bands

Sentinel-2

  • Green → B3 (~560 nm)
  • SWIR2 → B12 (~2190 nm)

Landsat 8/9

  • Green → B3
  • SWIR2 → B7

MODIS (example)

  • Green → Band 4
  • SWIR → Band 6

Suggested Palette

[ "#0b1220", "#204061", "#3b6ca0", "#7fb8e6", "#ffffff" ]

3. Google Earth Engine Code – NDSI_MOD (Green–SWIR2)


// NDSI_MOD – Modified Normalized Difference Snow Index
// NDSI_MOD = (Green - SWIR2) / (Green + SWIR2)

// AOI
var roi = geometry;
Map.centerObject(roi, 7);

// Sentinel-2 SR
var s2 = ee.ImageCollection("COPERNICUS/S2_SR")
  .filterBounds(roi)
  .filterDate("2023-01-01", "2023-12-31")
  .filter(ee.Filter.lt("CLOUDY_PIXEL_PERCENTAGE", 40))
  .select(["B3","B12"]);  // Green, SWIR2

var img = s2.median().clip(roi);

// NDSI_MOD
var ndsi_mod = img.expression(
  "(G - S2) / (G + S2)",
  {
    "G": img.select("B3"),   // Green
    "S2": img.select("B12")  // SWIR2
  }
).rename("NDSI_MOD");

// Visualization
var vis = {
  min: -1,
  max: 1,
  palette: ["#0b1220","#204061","#3b6ca0","#7fb8e6","#ffffff"]
};

Map.addLayer(ndsi_mod, vis, "NDSI_MOD (Green-SWIR2)");

// Optional: snow mask threshold (e.g. NDSI_MOD > 0.4)
var snow = ndsi_mod.gt(0.4).selfMask();
Map.addLayer(snow, {palette:["#ffffff"]}, "Snow Mask (NDSI_MOD > 0.4)", false);

// Export
Export.image.toDrive({
  image: ndsi_mod,
  description: "NDSI_MOD_export",
  fileNamePrefix: "NDSI_MOD_Green_SWIR2",
  region: roi,
  scale: 20,
  crs: "EPSG:4326",
  maxPixels: 1e13
});